﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BacteriaSimulation.Simulation
{
    public class CheckDeadBacteriumTask : ITask
    {
        void ITask.executeTask(Simulation simulation, Bacterium bacterium, SimulationEnvironment env)
        {
            if (bacterium.State == BacteriumState.DEAD)
            {
                simulation.RemovingBacteria.Add(bacterium);
                return;
            }
        }
    }
}
